package ext.tianma.part.finishedProduct.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import wt.iba.constraint.FloatContentRange;
import wt.iba.constraint.IntegerContentRange;

public class ClassAttrRuleVo  implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private List<String> legalValueList = new ArrayList<>();//合法值字符串集
	private Boolean singleValued = false;//是否单值
	private Boolean required = false;//是否必须的
	private String dataType;//String,TimestampDefinition,FloatValue,IntegerValue
	private String displayName;//属性显示名称
	private IntegerContentRange intRange;//整数范围
	private Integer[] intArray;//一组整数
	private FloatContentRange floatRange;//实数范围
	
	public List<String> getLegalValueList() {
		return legalValueList;
	}
	public void setLegalValueList(List<String> legalValueList) {
		this.legalValueList = legalValueList;
	}
	public Boolean getSingleValued() {
		return singleValued;
	}
	public void setSingleValued(Boolean singleValued) {
		this.singleValued = singleValued;
	}
	public Boolean getRequired() {
		return required;
	}
	public void setRequired(Boolean required) {
		this.required = required;
	}
	public String getDataType() {
		return dataType;
	}
	public void setDataType(String dataType) {
		this.dataType = dataType;
	}
	public String getDisplayName() {
		return displayName;
	}
	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}
	public IntegerContentRange getIntRange() {
		return intRange;
	}
	public void setIntRange(IntegerContentRange intRange) {
		this.intRange = intRange;
	}
	public Integer[] getIntArray() {
		return intArray;
	}
	public void setIntArray(Integer[] intArray) {
		this.intArray = intArray;
	}
	public FloatContentRange getFloatRange() {
		return floatRange;
	}
	public void setFloatRange(FloatContentRange floatRange) {
		this.floatRange = floatRange;
	}
	
	@Override
	public String toString() {
		return "ClassAttrRuleVo [legalValueList=" + legalValueList
				+ ", singleValued=" + singleValued + ", required=" + required
				+ ", dataType=" + dataType + ", displayName=" + displayName
				+ ", intRange=" + intRange + ", intArray="
				+ Arrays.toString(intArray) + ", floatRange=" + floatRange
				+ "]";
	}
}
